<?php
// HomeController.php
class HomeController
{
    public static function index($response)
    {
        $response->end(json_encode([
            'code' => 0,
            'msg' => 'Welcome to Swoole + FastRoute!',
            'time' => date('Y-m-d H:i:s')
        ]));
    }
}
